﻿using Microsoft.EntityFrameworkCore;
using SmartMedicalCare.Domain;

namespace SmartMedicalCare.Infrastructure
{
    /// <summary>
    /// 数据库映射上下文
    /// </summary>
    public class MyDbcontext : DbContext
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="options">上下文</param>
        public MyDbcontext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 轮播图
        /// </summary>
        public DbSet<CarouselModel> Carousels { get; set; }
        /// <summary>
        /// 科室表
        /// </summary>
        public DbSet<DepartmentModel> departments { get; set; }
        /// <summary>
        /// 科室二级分类表
        /// </summary>
        public DbSet<DeptSubCategoryModel> deptSubCategories { get; set; }
        /// <summary>
        /// 医院表
        /// </summary>
        public DbSet<HospitalModel> hospitals { get; set; }
        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<UserModel> users { get; set; }
    }
}
